let strs = ["alic3","bob","3","4","00000"]
var maximunValue = function(strs) {
   let obj = {}
   let result 
   let ans = 0
   let bns = 0
   for(let i=0;i<=9;i++){
    obj[i]=i
   }

   for(let i=0;i<strs.length;i++){
    result = true
    for(let j=0;j<strs[i].length;j++){
        if(!(obj.hasOwnProperty(strs[i][j]))){
            result = false
            break;
        }
    }
    if(result){
        bns = Number(strs[i])
    }
    else{
        bns = strs[i].length
    }
    ans = Math.max(ans,bns)
   }
   return ans
}
console.log(maximunValue(strs))
